import request from '@/utils/request'

export function addvideo(video) {
  return request({
    url: `/eduservice/video/addVideo`,
    method: 'post',
    data:video
  })
}

export function delVideo(id) {
  return request({
    url: `/eduservice/video/delVideo?id=${id}`,
    method: 'Delete'
  })
}



export function modifyVideo(video) {
  return request({
    url: `/eduservice/video/modifyVideo`,
    method: 'put',
    data:video
  })
}


export function getVideo(id) {
  return request({
    url: `/eduservice/video/getVideo?id=${id}`,
    method: 'get'
  })
}
//视频

export function removeVideo(id) {
  return request({
    url: `/eduoss/delvideo?id=${id}`,
    method: 'Delete'
  })
}
